@echo off
echo * note: this will compile the online version /bin/jsfxgen_online.swf
echo * edit './fcshw_jsfxgen_online.xml' and 'obj/..._fcshw_online.xml'
echo * to set paths
echo * do not abort this script !
echo.
:: @ switch files in
echo * renaming files...
ren src\Main.as Main.tmp
ren src\neolit123\jsfxgen\Editor.as Editor.tmp
ren src\Main_online.as Main.as
ren src\neolit123\jsfxgen\Editor_online.as Editor.as
echo *** using fcshWrapper...
echo.
:: @ set path to flexsdk bin ex: c:\flexsdk\bin\
set flexpath=
:: @ generate build time (bin\vbuild)
vbuild
:: @ compile - remove '+configname=air' for a web version
call ant -f .\fcshw_jsfxgen_online.xml
echo.
:: @ switch files back
echo * renaming files...
ren src\neolit123\jsfxgen\Editor.as Editor_online.as
ren src\Main.as Main_online.as
ren src\neolit123\jsfxgen\Editor.tmp Editor.as
ren src\Main.tmp Main.as
echo.
echo * starting application...
:: @ run with flash player (by filetype association)
cmd /c bin\jsfxgen_online.swf
